package com.xiaojie.learn.spring.readwritesplit.base;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 配置类
 */
@Configuration
@EnableAspectJAutoProxy//开启spring aop功能
//开启spring自动管理事务
@EnableTransactionManagement(proxyTargetClass = true , order = Integer.MAX_VALUE - 1)
@ComponentScan(basePackageClasses = IService.class)
public class ReadWriteConfiguration {
}
